package com.roadjava.GDOUGym.convert;

import com.roadjava.GDOUGym.bean.dto.GameDTO;
import com.roadjava.GDOUGym.bean.dto.PlaceDTO;
import com.roadjava.GDOUGym.bean.entity.GameDO;
import com.roadjava.GDOUGym.bean.entity.PlaceDO;
import org.mapstruct.Mapper;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Mapper(componentModel = "spring")
public abstract class GameConvert {
    @Resource
    private HttpServletRequest httpServletRequest;

    public abstract GameDO dto2do(GameDTO dto);

    public abstract GameDTO gameDdo2dto(GameDO gameDO);

    public abstract List<GameDTO> dos2dtos(List<GameDO> gameDOS);
}
